class CQueue:

    def __init__(self):
        self.q = []

    def appendTail(self, value: int) -> None:
        self.q.append(value)

    def deleteHead(self) -> int:
        return self.q.pop(0) if len(self.q) > 0 else -1
